home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / CMComponent.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  3.8 KB  |  221 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMComponent.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__CMCOMPONENT__') = 'UNDEFINED' THEN
  18. __CMCOMPONENT__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  27.     include 'Quickdraw.a'
  28.     ENDIF
  29. ;        include 'MixedMode.a'                                        ;
  30. ;        include 'QuickdrawText.a'                                    ;
  31.  
  32.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  33.     include 'Components.a'
  34.     ENDIF
  35.  
  36.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  37.     include 'Windows.a'
  38.     ENDIF
  39. ;        include 'Memory.a'                                            ;
  40. ;        include 'Events.a'                                            ;
  41. ;            include 'OSUtils.a'                                    ;
  42. ;        include 'Controls.a'                                        ;
  43. ;            include 'Menus.a'                                        ;
  44.  
  45.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  46.     include 'CMApplication.a'
  47.     ENDIF
  48. ;        include 'Printing.a'                                        ;
  49. ;            include 'Errors.a'                                        ;
  50. ;            include 'Dialogs.a'                                    ;
  51. ;                include 'TextEdit.a'                                ;
  52.  
  53. CMInterfaceVersion                EQU        0
  54.  
  55. ; CMM Component function selectors 
  56. kCMInit                            EQU        0
  57. kCMMatchColors                    EQU        1
  58. kCMGamutTest                    EQU        2
  59. kCMMatchPixMap                    EQU        3
  60. kCMCheckPixMap                    EQU        4
  61. kCMConcatenateProfiles            EQU        5
  62.  
  63. ; Profile Responder Components 
  64. ProfileResponderInterfaceRev    EQU        0
  65.  
  66. ; ProfileResponder Component function selectors 
  67. kCMGetProfile                    EQU        0
  68. kCMSetProfile                    EQU        1
  69. kCMSetProfileDescription        EQU        2
  70. kCMGetIndexedProfile            EQU        3
  71. kCMDeleteDeviceProfile            EQU        4
  72. kProfileResponderMaxSelector    EQU        kCMDeleteDeviceProfile
  73.  
  74. ; Required CMM Component routines 
  75.     IF GENERATING68K THEN
  76.         Macro
  77.         _CMInit
  78.             dc.w     $2F3C
  79.             dc.w     $0008
  80.             dc.w     $0000
  81.             moveq    #0,d0
  82.             dc.w     $A82A
  83.         EndM
  84.     ELSE
  85.         IMPORT    CMInit
  86.     ENDIF
  87.  
  88.     IF GENERATING68K THEN
  89.         Macro
  90.         _CMMatchColors
  91.             dc.w     $2F3C
  92.             dc.w     $0008
  93.             dc.w     $0000
  94.             moveq    #0,d0
  95.             dc.w     $A82A
  96.         EndM
  97.     ELSE
  98.         IMPORT    CMMatchColors
  99.     ENDIF
  100.  
  101.     IF GENERATING68K THEN
  102.         Macro
  103.         _CMCheckColors
  104.             dc.w     $2F3C
  105.             dc.w     $000C
  106.             dc.w     $0000
  107.             moveq    #0,d0
  108.             dc.w     $A82A
  109.         EndM
  110.     ELSE
  111.         IMPORT    CMCheckColors
  112.     ENDIF
  113.  
  114. ; Optional CMM Component routines 
  115.     IF GENERATING68K THEN
  116.         Macro
  117.         _CMMatchPixMap
  118.             dc.w     $2F3C
  119.             dc.w     $000C
  120.             dc.w     $0000
  121.             moveq    #0,d0
  122.             dc.w     $A82A
  123.         EndM
  124.     ELSE
  125.         IMPORT    CMMatchPixMap
  126.     ENDIF
  127.  
  128.     IF GENERATING68K THEN
  129.         Macro
  130.         _CMCheckPixMap
  131.             dc.w     $2F3C
  132.             dc.w     $0010
  133.             dc.w     $0000
  134.             moveq    #0,d0
  135.             dc.w     $A82A
  136.         EndM
  137.     ELSE
  138.         IMPORT    CMCheckPixMap
  139.     ENDIF
  140.  
  141.     IF GENERATING68K THEN
  142.         Macro
  143.         _CMConcatenateProfiles
  144.             dc.w     $2F3C
  145.             dc.w     $000C
  146.             dc.w     $0000
  147.             moveq    #0,d0
  148.             dc.w     $A82A
  149.         EndM
  150.     ELSE
  151.         IMPORT    CMConcatenateProfiles
  152.     ENDIF
  153.  
  154. ; ProfileResponder Component routines 
  155.     IF GENERATING68K THEN
  156.         Macro
  157.         _CMGetProfile
  158.             dc.w     $2F3C
  159.             dc.w     $0008
  160.             dc.w     $0000
  161.             moveq    #0,d0
  162.             dc.w     $A82A
  163.         EndM
  164.     ELSE
  165.         IMPORT    CMGetProfile
  166.     ENDIF
  167.  
  168.     IF GENERATING68K THEN
  169.         Macro
  170.         _CMSetProfile
  171.             dc.w     $2F3C
  172.             dc.w     $0004
  173.             dc.w     $0000
  174.             moveq    #0,d0
  175.             dc.w     $A82A
  176.         EndM
  177.     ELSE
  178.         IMPORT    CMSetProfile
  179.     ENDIF
  180.  
  181.     IF GENERATING68K THEN
  182.         Macro
  183.         _CMSetProfileDescription
  184.             dc.w     $2F3C
  185.             dc.w     $0008
  186.             dc.w     $0000
  187.             moveq    #0,d0
  188.             dc.w     $A82A
  189.         EndM
  190.     ELSE
  191.         IMPORT    CMSetProfileDescription
  192.     ENDIF
  193.  
  194.     IF GENERATING68K THEN
  195.         Macro
  196.         _CMGetIndexedProfile
  197.             dc.w     $2F3C
  198.             dc.w     $000C
  199.             dc.w     $0000
  200.             moveq    #0,d0
  201.             dc.w     $A82A
  202.         EndM
  203.     ELSE
  204.         IMPORT    CMGetIndexedProfile
  205.     ENDIF
  206.  
  207.     IF GENERATING68K THEN
  208.         Macro
  209.         _CMDeleteDeviceProfile
  210.             dc.w     $2F3C
  211.             dc.w     $0004
  212.             dc.w     $0000
  213.             moveq    #0,d0
  214.             dc.w     $A82A
  215.         EndM
  216.     ELSE
  217.         IMPORT    CMDeleteDeviceProfile
  218.     ENDIF
  219.  
  220.     ENDIF ; __CMCOMPONENT__
  221.